package com.joysuch.wwyt.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@TableName("wwyt_base_role_data_depart_auth")
public class BaseRoleDataDepartAuth {
    private Long id;

    private Long tenentId;

    private String orgCode;

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty("角色id")
    private Long roleId;

    @NotNull(message = "请选择是否包含子部门")
    @ApiModelProperty("是否包含子部门 1-是/0-否")
    private Integer containChild;

    @NotNull(message = "部门id不能为空")
    @ApiModelProperty("部门id  勾选所在组织  则传 -1")
    private Long departId;

    /** $column.columnComment */
    private Long createBy;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** $column.columnComment */
    private Long updateBy;

}